Skip to content

Conversation

@joaquim-verges
Copy link
Member

@joaquim-verges joaquim-verges commented Feb 13, 2025

Fixes TOOL-3410


PR-Codex overview

This PR focuses on enhancing the authentication process in the thirdweb wallet, specifically by introducing async handling for login methods and adding a Google login option.

Detailed summary

  • Changed authenticateWithRedirect and loginWithOauthRedirect to return Promise<void>.
  • Added a 5-second delay in loginWithOauthRedirect before proceeding.
  • Introduced loginWithGoogle function for Google authentication.
  • Updated UI to include a "Login with Google" button.

✨ Ask PR-Codex anything about this PR by commenting with /codex {your question}

@changeset-bot
Copy link

changeset-bot bot commented Feb 13, 2025

🦋 Changeset detected

Latest commit: 18e49ee

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 3 packages
Name Type
thirdweb Patch
@thirdweb-dev/wagmi-adapter Patch
thirdweb-login Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@vercel
Copy link

vercel bot commented Feb 13, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
docs-v2 ✅ Ready (Inspect) Visit Preview 💬 Add feedback Feb 13, 2025 2:52am
login ✅ Ready (Inspect) Visit Preview 💬 Add feedback Feb 13, 2025 2:52am
thirdweb_playground ✅ Ready (Inspect) Visit Preview 💬 Add feedback Feb 13, 2025 2:52am
thirdweb-www ✅ Ready (Inspect) Visit Preview 💬 Add feedback Feb 13, 2025 2:52am
wallet-ui ✅ Ready (Inspect) Visit Preview 💬 Add feedback Feb 13, 2025 2:52am

@github-actions github-actions bot added Playground Changes involving the Playground codebase. packages SDK Involves changes to the thirdweb SDK labels Feb 13, 2025
Copy link
Member Author


How to use the Graphite Merge Queue

Add either label to this PR to merge it via the merge queue:

  • merge-queue - adds this PR to the back of the merge queue
  • hotfix - for urgent hot fixes, skip the queue and merge this PR next

You must have a Graphite account in order to use the merge queue. Sign up using this link.

An organization admin has enabled the Graphite Merge Queue in this repository.

Please do not merge from GitHub as this will restart CI on PRs being processed by the merge queue.

This stack of pull requests is managed by Graphite. Learn more about stacking.

@linear
Copy link

linear bot commented Feb 13, 2025

@github-actions
Copy link
Contributor

github-actions bot commented Feb 13, 2025

size-limit report 📦

Path Size Loading time (3g) Running time (snapdragon) Total time
thirdweb (esm) 46.3 KB (0%) 926 ms (0%) 2.9 s (+26.79% 🔺) 3.8 s
thirdweb (cjs) 121.89 KB (0%) 2.5 s (0%) 5.1 s (-18.89% 🔽) 7.5 s
thirdweb (minimal + tree-shaking) 5.6 KB (0%) 112 ms (0%) 615 ms (+157.98% 🔺) 727 ms
thirdweb/chains (tree-shaking) 506 B (0%) 10 ms (0%) 69 ms (+53.68% 🔺) 79 ms
thirdweb/react (minimal + tree-shaking) 19.29 KB (0%) 386 ms (0%) 481 ms (+0.61% 🔺) 867 ms

@codecov
Copy link

codecov bot commented Feb 13, 2025

Codecov Report

Attention: Patch coverage is 12.50000% with 7 lines in your changes missing coverage. Please review.

Project coverage is 56.86%. Comparing base (880148b) to head (18e49ee).
Report is 1 commits behind head on main.

Files with missing lines Patch % Lines
.../thirdweb/src/wallets/in-app/web/lib/auth/oauth.ts 0.00% 4 Missing ⚠️
...irdweb/src/wallets/in-app/web/lib/web-connector.ts 33.33% 2 Missing ⚠️
...s/thirdweb/src/wallets/in-app/core/wallet/index.ts 0.00% 1 Missing ⚠️

❌ Your patch status has failed because the patch coverage (12.50%) is below the target coverage (80.00%). You can increase the patch coverage or adjust the target coverage.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #6246      +/-   ##
==========================================
- Coverage   56.87%   56.86%   -0.01%     
==========================================
  Files        1166     1166              
  Lines       64522    64523       +1     
  Branches     5223     5221       -2     
==========================================
- Hits        36699    36694       -5     
- Misses      27095    27101       +6     
  Partials      728      728              
Flag Coverage Δ *Carryforward flag
legacy_packages 65.68% <ø> (ø) Carriedforward from 880148b
packages 55.08% <12.50%> (-0.02%) ⬇️

*This pull request uses carry forward flags. Click here to find out more.

Files with missing lines Coverage Δ
...s/thirdweb/src/wallets/in-app/core/wallet/index.ts 73.91% <0.00%> (ø)
...irdweb/src/wallets/in-app/web/lib/web-connector.ts 39.38% <33.33%> (ø)
.../thirdweb/src/wallets/in-app/web/lib/auth/oauth.ts 5.00% <0.00%> (-1.07%) ⬇️

... and 2 files with indirect coverage changes

@joaquim-verges joaquim-verges deleted the _SDK_fix_Prevent_popup_when_using_auth_redirect_mode branch February 13, 2025 03:31
@joaquim-verges joaquim-verges mentioned this pull request Feb 13, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

packages Playground Changes involving the Playground codebase. SDK Involves changes to the thirdweb SDK

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants